import 'dart:ui';

class TransformVertexModel {
  late final Offset topLeft;
  late final Offset topRight;
  late final Offset bottomRight;
  late final Offset bottomLeft;

  TransformVertexModel({
    required this.topLeft,
    required this.topRight,
    required this.bottomRight,
    required this.bottomLeft,
  });

  TransformVertexModel.fromJson(Map<String, dynamic> json) {
    topLeft = json['topLeft'];
    topRight = json['topRight'];
    bottomRight = json['bottomRight'];
    bottomLeft = json['bottomLeft'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['topLeft'] = topLeft;
    data['topRight'] = topRight;
    data['bottomRight'] = bottomRight;
    data['bottomLeft'] = bottomLeft;
    return data;
  }
}
